const mongoose = require('mongoose')

/**
 * 生成基本的订单，需要商品的id
*/
module.exports = mongoose.model('orders', new mongoose.Schema({
  user_id: String,
  order_id: String,
  num: Number,
  address: String,
  order_info: String,
  status: { type: Number, default: 1 },
  create_time: { type: Number, default: Date.now() },
}))